package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreActRelationsPK implements Serializable {
    public Long relationshipId;
//    public Long sourceActVerNum;
//    public Long targetActVerNum;

    public RimCoreActRelationsPK() {
    }

    public RimCoreActRelationsPK(Long relationshipId, Long sourceActVerNum, 
                          Long targetActVerNum) {
        this.relationshipId = relationshipId;
//        this.sourceActVerNum = sourceActVerNum;
//        this.targetActVerNum = targetActVerNum;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreActRelationsPK) {
            final RimCoreActRelationsPK otherActRelationsPK = (RimCoreActRelationsPK)other;
            final boolean areEqual = 
                (
                		otherActRelationsPK.relationshipId.equals(relationshipId) 
//                		&& 
//                 otherActRelationsPK.sourceActVerNum.equals(sourceActVerNum) && 
//                 otherActRelationsPK.targetActVerNum.equals(targetActVerNum)
                );
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
